import Layout from '@/pages/public/layout' // 公共部分

const config = [{
  path: '/finance/credit',
  component: Layout,
  children: [{
    path: 'config',
    component: () => import('@/pages/finance/credit/config.vue'),
    meta: {
      title: '获取积分配置',
      permission: 'finance.credit.config'
    }
  // }, {
  //   path: 'recharge',
  //   component: () => import('@/pages/finance/credit/recharge.vue'),
  //   meta: {
  //     title: '充值积分比例',
  //     permission: 'finance.credit.recharge'
  //   }
  }, {
    path: 'redeem',
    component: () => import('@/pages/finance/credit/redeem.vue'),
    meta: {
      title: '兑换比例',
      permission: 'finance.credit.redeem'
    }
  }, {
    path: 'order',
    component: () => import('@/pages/finance/credit/order.vue'),
    meta: {
      title: '订单满抵',
      permission: 'finance.credit.redeem'
    }
  }, {
    path: 'threshold',
    component: () => import('@/pages/finance/credit/threshold.vue'),
    meta: {
      title: '积分满用',
      permission: 'finance.credit.threshold'
    }
  }]
}]

export default config
